<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Editor</title>
  <style type="text/css" media="screen">
    body {
        overflow: hidden;
    }
    
    #editor,#historybox { 
        margin: 0;
        position: absolute;
        bottom: 82px;
        left: 0;
        right: 0;
    }
    #editor {top: 0;}
    #historybox {
      height: 80px;
      bottom: 0;
      background: rgb(35,35,35);
      border-top: solid 2px rgb(99,99,99);
      color: #fff;
    }
    #historybox #page {
      width: 80px;
      line-height: 40px;
      text-align: center;
      float:left;
      background: #000;
      cursor:pointer;
    }
    #historybox #page.active {
      background: #033547;
    }
    #addNote{
      width: 36px;
      height: 42px;
      position: fixed;
      right: 12px;
      top: 0;
      cursor:pointer;
    }
  </style>
</head>
<body>

<pre id="editor"></pre>
<div id="historybox">
</div>
    
<!-- load ace -->
<script src="ace.js"></script>
<!-- load ace settings_menu extension -->
<script src="ext-settings_menu.js"></script>
<script>
    var editor = ace.edit("editor");
    ace.require('ace/ext/settings_menu').init(editor);
    editor.setTheme("ace/theme/twilight");
    editor.session.setMode("ace/mode/html");
  editor.commands.addCommands([{
    name: "showSettingsMenu",
    bindKey: {win: "Ctrl-q", mac: "Command-q"},
    exec: function(editor) {
      editor.showSettingsMenu();
    },
    readOnly: true
  }]);
</script>
<script src="db.js"></script>
<div id="addNote"></div>
</body>
</html>
